#include <stdio.h>

char *getword(char);
char * getword(char c)
{	
     switch (c)	
     {  
	 case 'A': return "Apple";   
	 case 'B': return "Banana";   
	 case 'C': return "Cat";   
	 case 'D': return "Dog";   
         default : return "JINQian";
     } 
}     
int main()
{
   char input; 
   printf("which do you like?");
   scanf("input:%c",&input);
   printf("sweet:%s\n", getword(input));
   return 0;
}	
